﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FlightService
{
    /// <summary>
    /// Class that encapsulates a flight
    /// </summary>
    public class Flight
    {
        /// <summary>
        /// Departure date
        /// </summary>
        public DateTime DateFrom { get; set; }

        /// <summary>
        /// Departure time
        /// </summary>
        public string TimeFrom { get; set; }

        /// <summary>
        /// Arrival date
        /// </summary>
        public DateTime DateTo { get; set; }
        
        /// <summary>
        /// Arrival time
        /// </summary>
        public string TimeTo { get; set; }

        /// <summary>
        /// Departure city
        /// </summary>
        public string CityFrom { get; set; }

        /// <summary>
        /// Arrival city
        /// </summary>
        public string CityTo { get; set; }

        /// <summary>
        /// Name of the airline
        /// </summary>
        public string Airline { get; set; }

        /// <summary>
        /// Price per adult (18+)
        /// </summary>
        public double Price { get; set; }

        /// <summary>
        /// Price per child (less than 18 years old)
        /// </summary>
        public double PriceChildren { get; set; }

        // public Flight Predecessor { get; set; }

        /// <summary>
        /// Number of adult passengers
        /// </summary>
        public int Adults { get; set; }

        /// <summary>
        /// Number of non-adult passengers
        /// </summary>
        public int Children { get; set; }
    }
}